package com.wenli.lt.java8.Impl;

import com.wenli.lt.java8.IntefaceJava8;
import com.wenli.lt.java8.entity.Product;

public class ColorPredicate implements IntefaceJava8<Product> {
    private static final String RED = "红色";


    @Override
    public boolean test(Product product) {
        return RED.equals(product.getColor());
    }
}
